import axios from 'axios'
import { Notification, MessageBox, Message } from 'element-ui'
import store from '@/store'
import { getToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode'



axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例
const service = axios.create({
  // axios中请求配置有baseURL选项，表示请求URL公共部分
  //baseURL: getArcgisBaseUrl(),
  // 超时
  baseURL: '/baseData',
  timeout: 100000
})

//
// 响应拦截器
service.interceptors.response.use(res => {
    return res.data
  },
  error => {
  }
)

export default service
